<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of class
 *
 * @author ww
 */
class TextAnswerType extends AAnswerType {

    public function getFormHTML() {
            $params['data'] = $this->form_manager->loadPOSTData('answer_text');
            $params['errors'] = $this->form_manager->getErrorsForFields('answer_text');
            $form_params = array(
                'body' => $this->view->getperformer_textvalidation_form($params),
                'action' => 'answer_text',
                'buttons' => '<input type="submit" value="Отправить">'
            );
            return View::form_ex($form_params);
    }

    public function getName() {
        return "Тектсовый";
    }
}
?>
